package com.community.manage.remote;

import com.community.common.entity.vo.UserLoginVo;
import com.community.common.result.Result;
import com.community.manage.factory.ManageRmoteFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

//@FeignClient(contextId = "userLoginRemote",value="community-manage",fallbackFactory = ManageRmoteFactory.class,path = "/user")
public interface ManageRemote {

    /**
     * 查找用户
     * @param phone
     * @return
     */
    @PostMapping("/findUserByPhone/{phone}")
    public Result<UserLoginVo> findUserByPhone(@PathVariable String phone);
}
